<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<body>
  <script>
     // 5. 将学生数组中的所有姓名，存入成一个新数组，并过滤掉小强 => 得到 ['小明', '小丽', '小美']
     const arr5 = [
        { id: 1, name: '小强', score: 18 },
        { id: 2, name: '小明', score: 2000 },
        { id: 3, name: '小丽', score: 8 },
        { id: 4, name: '小美', score: 5000 },
      ]
      const arr=[]
      arr5.map(item=>{
        if(item.name!=='小强'){
          arr.push(item.name)
        }
      })
      console.log(arr);
  </script>
</body>
</html>